//
//  FZHomeSectionModel.m
//  Pods
//
//  Created by CyonLeuPro on 15/5/20.
//
//

#import "FZHomeSectionModel.h"

//#import "FZHomeSliderModel.h"
#import "FZHomeCourseModel.h"
#import "FZAdvertisementModel.h"

@implementation FZHomeSectionModel

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"identifier": @"id",
             @"title": @"title",
             @"icon": @"icon",
             @"module": @"module",
             @"randNum": @"rand",
             @"snum": @"snum",
             @"cover": @"cover",
             
             @"sliders": @"slider",
             @"courses": @"course",
             @"albums": @"album",
             };
}


+ (NSValueTransformer *)slidersJSONTransformer {
    return [NSValueTransformer mtl_JSONArrayTransformerWithModelClass:[FZAdvertisementModel class]];
}

+ (NSValueTransformer *)coursesJSONTransformer {
    return [NSValueTransformer mtl_JSONArrayTransformerWithModelClass:[FZHomeCourseModel class]];
}

+ (NSValueTransformer *)albumsJSONTransformer {
    return [NSValueTransformer mtl_JSONArrayTransformerWithModelClass:[FZHomeCourseModel class]];
}

+ (NSValueTransformer *)featuresJSONTransformer {
    return [NSValueTransformer mtl_JSONArrayTransformerWithModelClass:[FZHomeCourseModel class]];
}

@end
